package com.nix.web.databases.service.user;

import com.nix.web.databases.mapper.user.InfoMapper;
import com.nix.web.databases.pojo.user.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by zhangpe0312@qq.com on 2017/12/20.
 */
@Service
public class InfoService implements InfoMapper{

    @Autowired
    private InfoMapper infoMapper;

    @Override
    public boolean add(Info info) throws Exception {
        return infoMapper.add(info);
    }

    @Override
    public boolean delete(Integer id) throws Exception {
        return infoMapper.delete(id);
    }

    @Override
    public boolean update(Info info) throws Exception {
        return infoMapper.update(info);
    }

    @Override
    public Info select(Integer id) throws Exception {
        return infoMapper.select(id);
    }
}
